package com.tjec.project.businessStandardLibrary.service;

import com.tjec.project.businessStandardLibrary.domain.BmsKnowledgeCase;
import java.util.List;

/**
 * 典型案例Service接口
 * 
 * @author pangyongfeng
 * @date 2020-04-21
 */
public interface IBmsKnowledgeCaseService 
{
    /**
     * 查询典型案例
     * 
     * @param guid 典型案例ID
     * @return 典型案例
     */
    public BmsKnowledgeCase selectBmsKnowledgeCaseByGuid(String guid);
    /**
     * 查询典型案例 详情
     * villwang
     * @param guid 典型案例ID
     * @return 典型案例
     */
    public BmsKnowledgeCase selectBmsKnowledgeCaseByGuiddetails(String guid);

    /**
     * 查询典型案例列表
     * 
     * @param bmsKnowledgeCase 典型案例
     * @return 典型案例集合
     */
    public List<BmsKnowledgeCase> selectBmsKnowledgeCaseList(BmsKnowledgeCase bmsKnowledgeCase);

    /**
     * 新增典型案例
     * 
     * @param bmsKnowledgeCase 典型案例
     * @return 结果
     */
    public int insertBmsKnowledgeCase(BmsKnowledgeCase bmsKnowledgeCase);

    /**
     * 修改典型案例
     * 
     * @param bmsKnowledgeCase 典型案例
     * @return 结果
     */
    public int updateBmsKnowledgeCase(BmsKnowledgeCase bmsKnowledgeCase);

    /**
     * 批量删除典型案例
     * 
     * @param guids 需要删除的典型案例ID
     * @return 结果
     */
    public int deleteBmsKnowledgeCaseByGuids(String[] guids);

    /**
     * 删除典型案例信息
     * 
     * @param guid 典型案例ID
     * @return 结果
     */
    public int deleteBmsKnowledgeCaseByGuid(String guid);

    /**
     * 查询典型案例 加上树的
     *
     * @param bmsKnowledgeCase 典型案例ID
     * @return 典型案例
     */
    List<BmsKnowledgeCase> selectBmsKnowledgeCaseTreeList(BmsKnowledgeCase bmsKnowledgeCase);

    /**
     * 组装数据
     * @param bms
     * @return
     */
    List<BmsKnowledgeCase> bmsKnowledgeCaseList(List<BmsKnowledgeCase> bms);

    /**
     * 组装数据
     * @param bms
     * @param businessCategoryId
     * @return
     */
    List<BmsKnowledgeCase> bmsKnowledgeCaseList(List<BmsKnowledgeCase> bms, String businessCategoryId);
}
